package com.lagou.client;

import java.io.IOException;

public class HbaseDemo {

    public static void main(String[] args) throws IOException, InterruptedException {
        UserRelation userRelation = new UserRelation();

        userRelation.init();
        //创建表
        userRelation.createTable();

        //添加好友
        userRelation.addFriend("000001", "000002");
        userRelation.addFriend("000001", "000003");
        userRelation.addFriend("000001", "000004");
        userRelation.addFriend("000002", "000001");
        userRelation.addFriend("000002", "000003");
        userRelation.addFriend("000003", "000001");

        Thread.sleep(5000);
        //删除好友
        userRelation.deleteFriend("000001", "000002");
        userRelation.deleteFriend("000001", "000004");
        userRelation.deleteFriend("000002", "000003");

    }
}
